$(function(){
	var allDate = $(".show-list .show-date .date-item");
	console.log(allDate);
	for (var i = 0; i < allDate.length; i++) {
		allDate.eq(i).attr("flag",i);
		allDate.eq(i).click(function(){
			console.log("执行了点击事件");
			var date = $(this).html();
			var filmId = $("#filmIdHidden").val();
			var flag = $(this).attr("flag");
			location.href = "changeDateShowings?filmId="+filmId+"&date="+date+"&flag="+flag;
		});
	}
});